﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage_ContentMasterPage : System.Web.UI.MasterPage
{
    #region 属性
    /// <summary>
    /// 返回虚拟目录路径
    /// </summary>
    public string ApplicationPath
    {
        get
        {
            string applicationPath = HttpContext.Current.Request.ApplicationPath;
            if (applicationPath == "/")
            {
                return string.Empty;
            }
            else
            {
                return applicationPath;
            }
        }
    }

    #endregion
}
